package com.example.provider.dao;

import com.example.common.entity.Invite;
import com.example.common.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InviteDao {
    void insert(@Param("id") long id,
                @Param("demandId") long demandId,
                @Param("workroomId") int workroomId,
                @Param("companyId") int companyId);

    List<Invite> searchByWorkroomId(int workroomId);

    List<Invite> searchByCompanyId(int companyId);

    void updateById(@Param("id") Long id, @Param("isAgree") int isAgree);
}
